
class HeartRateModel{
  String? code;
  String? name;
  String? val;
  bool? alert;

  HeartRateModel.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    name = json['name'];
    val = json['val'];
    alert = json['alert'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['code'] = code;
    data['name'] = name;
    data['val'] = val;
    data['alert'] = alert;
    return data;
  }

}